r
ramya

Developer Engagement Portal Design

Blazor Community Dashboard that surfaces a developer feed, profile card, composer form and right rail lists. Uses a Tailwind layout with componentized Razor files.

LIVE DEMO
Generated using Instruct UI - An AI for Blazor UI Generation
## What's implemented - Community / developer feed with post cards (text, images, code snippets) and engagement controls. - Post composer implemented with EditForm and InputTextArea for content submission. - Left profile card and nav, center feed, and right-rail lists (communities, similar communities, friends online). - Theme toggle using an EventCallback and lightweight client-side dark mode flag. - Reusable section wrapper (RightRailSection) and small components (DeveloperProfileCard, FeedPostCard, ThemeToggle). ## Key components - EditForm, InputTextArea, InputText, @bind-Value - Component files: DevHubDashboard.razor, DeveloperProfileCard.razor, FeedComposer.razor, FeedPostCard.razor, RightRailSection.razor, ThemeToggle.razor - Models and mock data: DevProfileModel, DevPostModel, DevCommunityModel, DevFriendModel and DevHubMockData - Razor features: RenderFragment (ChildContent), EventCallback<bool>, [Parameter] ## How it works - Data is provided by DevHubMockData and passed into child components as strongly typed parameters. - The composer uses EditForm with OnValidSubmit to clear the model (placeholder for server-side submit). Inputs use @bind-Value for two-way binding. - ThemeToggle flips a local isDark bool and notifies the parent via IsDarkChanged EventCallback. - FeedPostCard conditionally renders code blocks, images and action buttons based on DevPostModel properties. ## Styling - Tailwind utility classes apply layout, spacing and color (e.g., flex, gap-*, rounded-2xl, bg-slate-900). The codebase assumes Tailwind CSS and a dark-mode strategy via a boolean flag. - Icons use Font Awesome classes (fas, far) in markup; project must include the icon stylesheet. - Layout is responsive via Tailwind breakpoints (sm, md, lg, xl) and uses fixed-width sidebars plus a centered feed column. ## Reuse steps 1. Add Razor files to a Blazor project and include the DevHubMockData.cs models. 2. Install and configure Tailwind CSS in the project (postcss/npm build) and include the generated CSS in index.html/_Host. 3. Add Font Awesome or another icon set to the app to render the icon classes used. 4. Import component namespace in _Imports.razor or use explicit @using in pages. 5. Replace mock data with an injected HttpClient or a service; wire save/submit endpoints and real-time updates (SignalR) if needed. ## Limitations & next steps - Uses static mock data (DevHubMockData). Server-side persistence, authentication and authorization are not implemented. - No pagination, virtualization or infinite scroll for large feeds; add paging or virtualization for production scale. - Accessibility checks and form validation rules are minimal; add DataAnnotations or custom validators to EditForm models. - Consider wiring SignalR or a push mechanism for live updates, and implement API endpoints for posts, communities and presence.